home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / rectangle.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  701 b   |  26 lines

  1. #ifndef CLASS_RECTANGLE_H
  2. #define CLASS_RECTANGLE_H 1
  3.  
  4. class rectangle
  5. {
  6. public:
  7.     short maxw ;    // MaxWidth
  8.     short maxh ;    // MaxHeight
  9.     short minw ;    // MinWidth
  10.     short minh ;    // MinHeight
  11.  
  12.     short left ;    // Left Edge
  13.     short top ;     // Top Edge
  14.     short width ;   // Width
  15.     short height ;  // Height
  16.  
  17.     rectangle(short l, short, short w, short h) ;
  18.     virtual ~rectangle() {}
  19.     void box(short l, short t, short w, short h) ;
  20.     void relbox(short dx, short dy, short dw, short dh) ;
  21.     virtual void move(short dx, short dy=0) ;
  22.     virtual void size(short dw, short dh=0) ;
  23.     virtual void limits(short wmin, short hmin, short wmax, short hmax) ;
  24.  };
  25. #endif
  26.